package com.example.final_project.entity;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class Book {
    private Long id;
    private String isbn;
    private String name;
    private String author;
    private Long publisherId;
    private BigDecimal price;
    private LocalDate publishDate;
    private String edition;
    private String description;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
    // 非数据库字段，用于显示
    private Publisher publisher;
    private Integer stock;
} 